<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
<ul class="latestnews<?php echo $moduleclass_sfx; ?>">
<?php foreach ($list as $item) :  ?>
	<li>
	<div class="articles">
		<h3><a href="<?php echo $item->link; ?>">
			<?php echo $item->title; ?></a></h3>
		<h4>Posted on: <?php echo $item->created;?> | By <?php echo JFactory::getUser($item->created_by)->name;?></h4>
		<div class="mt10">
			<div class="thumbnail"><img src="<?php echo json_decode($item->images)->image_intro; ?>" /></div>
			<div class="w520 fr">
				<div class="p"><?php echo $item->introtext; ?></div>
				<div class="ofh pt5">
					<div class="fs12 fl"><a href="<?php echo $item->link; ?>" class="cf0">Comments (<?php ?>)</a></div>
					<div class="fr"><a href="<?php echo $item->link; ?>"><img src="images/share.jpg" /></a></div>
				</div>
			</div>
		</div>
	</div>
	</li>
<?php endforeach; ?>
</ul>
